package cn.handong.tool;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class ReadSourceCode {

    @Test
    public void testHashMap(){
        HashMap<String, String> map = new HashMap<>();
        map.put("6","66");
        map.put("5","44");
        map.put("4","55");
        map.put("3","33");
        map.put("2","11");
        map.put("1","22");
        Object o = map.get("3");
        System.out.println(o);
        String className = this.getClass().getName();// 这是完整的类路径名
        String simpleClassName = this.getClass().getSimpleName();// 仅仅是类名
        String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
        System.out.println("className: " + className + ", simpleClassName: " + simpleClassName + ", methodName:" + methodName);
    }

}
